<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>品质管控-巡检任务</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/analysis_historyfeesummary.css" />
    <link rel="stylesheet" type="text/css" href="css/customerservicelist.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.picker.min.css" />
    <link rel="stylesheet" type="text/css" href="../script/mui/mui.reset.css" />
    <link rel="stylesheet" type="text/css" href="css/quality_analysis.css" />
    <style>
        /* 进度条
 */
        .prograssbg {
            width: 100%;
            border-radius: 20px;
            height: 10px;
            background: #e9f5ff;
            position: relative;
            margin-top: 5px;
        }

        .prograssmsg {
            /* width: 50%; */
            border-radius: 20px;
            height: 10px;
            background: #289fff;
            position: absolute;
            top: 0;
            left: 0;
        }

        .content {
            color: #828c9a;

            height: 1.6rem;
            line-height: 1.6rem;
        }

        .content span {
            font-size: 0.6rem;

        }

        .content span.percent {
            margin-left: 5px;
        }
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <div v-on:click="doHideSearch()" v-if="showsearch" class="maskbg">
        </div>
        <div v-if="showsearchparam" class="searchparam nomenu" style="height: 70%;">
            <div class="searchcontent" style="height: 100%;">
                <div class="searchparamtitle" v-if="form.ProjectCompanyType==1">
                    项目名称
                </div>
                <div class="searchparamitem" v-if="form.ProjectCompanyType==1">
                    <label v-on:click="doSelectProject(item.ID,item.Name)"
                        v-bind:class="{'active':form.ProjectIDs.indexOf(item.ID)>-1}"
                        v-for="item in projectList">{{item.Name}}</label>
                </div>
            </div>
        </div>
        <div class="search_box fixedbox bgshadow" v-bind:class="{'fixedbox':showsearch}">
            <div class="searchitem" v-bind:class="{'chkedbox':showsearchparam}" v-on:click="doSelectSearchParam(1)">
                筛选
                <i v-if="!showsearchparam" class="icon iconfont icon-down"></i>
                <i v-if="showsearchparam" class="icon iconfont icon-shangjiantou" style="color:#fff;"></i>
            </div>
            <div id="datemonth" data-options='{"type":"month"}' class="searchitem"
                v-bind:class="{'chkedbox':showsearchmonth}" v-on:click="doSelectSearchParam(2)">
                {{form.activeDateDesc}}
                <i v-if="!showsearchmonth" class="icon iconfont icon-down"></i>
                <i v-if="showsearchmonth" class="icon iconfont icon-shangjiantou" style="color:#fff;"></i>
            </div>
        </div>
        <div class="aui-content" style="margin-top: 2.3rem;">
            <div class="newcontentbox">
                <label class="bababa"> {{ProjectName}} </label>
                <label class="lr-line"> | </label>
                <label class="bababa"> {{form.startMonth}} 统计 </label>
                <div v-if="summary.YCCount!=undefined&&summary.YCCount>0" class="newcontentbox-right"><label
                        class="tag-label-blue tag-label-red">异常 {{summary.YCCount}} </label></div>
            </div>

            <div v-if="list.length>0" class="boxarea mainbox" v-for="item in list">
                <!-- 考核任务 -->
                <div v-if="item.Type==2">
                    <div class="work_title">
                        {{item.PlanName}}
                    </div>
                    <div class="work_con_box_time marginheight">
                        <div class="work_con_box_left">考核项目</div>
                        <div class="work_con_box_right">
                            <label>{{item.ProjectName}}<span class="overtime"></span></label>

                        </div>
                    </div>
                    <div class="work_con_box_name marginheight">
                        <div class="work_con_box_left">任务到期</div>
                        <div class="work_con_box_right">
                            <label>{{item.EndTimeDesc}} 到期</label>
                        </div>
                    </div>
                    <div class="work_con_box_time marginheight">
                        <div class="work_con_box_left">检查项目</div>
                        <div class="work_con_box_right">
                            <div class="prograssbg">
                                <div class="prograssmsg"
                                    v-bind:style="{'width':((item.CompleteCount/item.AllCount)*100).toFixed(2)+'%'}">
                                </div>
                            </div>
                            <div class="content">
                                <span>({{item.CompleteCount}}/{{item.AllCount}})</span>
                                <span class="percent">已完成:
                                    {{((item.CompleteCount/item.AllCount)*100).toFixed(2)}}%</span>
                                <span class="percent fenzhi">已扣: {{item.DeductScore}}分</span>
                            </div>
                        </div>
                    </div>
                </div>
                 <!-- 检查任务 -->
                 <div v-if="item.Type==1">
                    <div class="work_title">
                        {{item.DevicePlanName}}
                    </div>
                    <div class="work_con_box_time marginheight">
                        <div class="work_con_box_left">任务有效期</div>
                        <div class="work_con_box_right">
                            <label>{{item.TotalStartTime}}~{{item.TotalEndTime}}</label>

                        </div>
                    </div>
                    <div class="work_con_box_name marginheight">
                        <div class="work_con_box_left">任务周期</div>
                        <div class="work_con_box_right">
                            <label>每{{item.Release}}{{item.CycleCount}}次</label>
                        </div>
                    </div>
                    <div class="work_con_box_time marginheight">
                        <div class="work_con_box_left">检查项目</div>
                        <div class="work_con_box_right">
                            <div class="prograssbg">
                                <div class="prograssmsg"
                                    v-bind:style="{'width':item.progress.toFixed(2)+'%'}">
                                </div>
                            </div>
                            <div class="content">
                                <span>({{item.endCount}}/{{item.totalCount}})</span>
                                <span class="percent">已完成:
                                    {{item.progress}}%</span>
                                
                            </div>
                        </div>
                    </div>
                </div>





            </div>

        </div>

         <div v-if="list.length<=0" class="noinfo" id="noorder" >
            <img src="../image/index/noinfomsg_icon.png" alt="" />
            <h5><br />暂无数据</h5>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/mui/mui.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.picker.min.js"></script>
<script type="text/javascript" src="../script/mui/mui.poppicker.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/page/dateRangeUtil.js"></script>
<script type="text/javascript" src="../script/highcharts/highcharts.js"></script>
<script type="text/javascript" src="../script/highcharts/modules/exporting.js"></script>
<script type="text/javascript" src="js/quality_analysis_xunjian.js"></script>

</html>